package com.google.code.mc4java.conn;

import java.io.IOException;

import com.google.code.mc4java.SaeMemcachexClient;
import com.google.code.mc4java.msg.Message;

public abstract class AbstractConnection {

	public abstract void init(SaeMemcachexClient.ServerInfo serverInfo)throws IOException;
	
	public abstract boolean send(Message msg)throws IOException;
	
	public abstract byte[] receive(int len)throws IOException;
	
	public abstract String readLine();
	
	public abstract boolean skipEnter();
	
}
